package demo1;

/**
 * @Author 12629
 * @Description：
 */
public class Cat extends Animal{
    public Cat(String name, int age) {
        super(name, age);
    }

    public void mew() {
        System.out.println(this.name+" 喵喵叫....");
    }

    @Override
    public void eat() {
        System.out.println(this.name+" 正在吃猫粮...");
    }

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
